package com.etpjava.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name="tb_manager")
public class Manager {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5675686663193160142L;

	private int id;
	

	private String account;

	private String password;

	private int level;

	private Employee employee;



	@ManyToOne
	@JoinColumn
	public Employee getEmployee() {
		return employee;
	}
	
	

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public int getLevel() {
		return level;
	}
	public String getPassword() {
		return password;
	}

	
	public String getAccount() {
		return account;
	}



	public void setAccount(String account) {
		this.account = account;
	}



	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	
	public void setId(int id) {
		this.id = id;
	}
	public void setLevel(int level) {
		this.level = level;
	}

	public void setPassword(String password) {
		this.password = password;
	}
}
